package com.bwie.activity.service.impl;

import com.bwie.activity.mapper.DictMapper;
import com.bwie.activity.service.DictService;
import com.bwie.common.pojo.res.DictRes;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class DictServiceImpl implements DictService {
    private final DictMapper dictMapper;

    /**
     * 根据字典类型查询
     * @param dictType
     * @return
     */
    @Override
    public List<DictRes> getDictByType(String dictType) {
        return dictMapper.getDictByType(dictType);
    }
}
